﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ViewModels.Controllers
{
    public class HomeController : Controller
    {
        List<Book> books = new List<Book>
        {
            new Book(1110, "The Big Book", 20),
            new Book(1111, "Next Title", 12),
            new Book(1112, "SheeBang", 5),

        };
        public ActionResult Index()
        {
            return View(books);
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}